#!/bin/bash

is_director()
{
    DIR_NAME=$1
    if [ ! -d $DIR_NAME ]; then
        return 1
    else
        return 0
    fi
}

for DIR in `ls`; do
    if is_director "$DIR"; then
        cd $DIR
        make clean
        cd ..
    fi
done
